package 继承;

/*
//与众不同的人
class Character{
    public String name;
    public int age;
    public void Characteristic1(){
        System.out.println(name + "口才好~");
    }
}
//音乐生
class MusicStudent extends Character{

    public void Characteristic2(){
        System.out.println(name + "会弹琴，唱歌~");
    }
}
//美术生
class ArtStudent extends Character{
    public void Characteristic2(){
        System.out.println(name + "会素描，写实~");
    }
}
public class Test {
    public static void main(String[] args){

    }
}*/


class Character{
    public int data1;
    public int data2;
    static{
     System.out.println("父类的静态内部类初始化完成！");
    }

    public Character(){
        System.out.println("父类的构造方法初始化完成！");
    }
    {
        System.out.println("父类的实例内部类初始化完成！");
    }
}
class Art extends Character{
    public int data3;
    public int data4;
    static{
        System.out.println("子类的静态内部类初始化完成！");
    }
    public Art(){
        super();
        System.out.println("子类的构造方法初始化完成！");
    }
    {
        System.out.println("子类的实例内部类初始化完成！");
    }
}

public class Test{
    public static void main(String[] args){
        Character ch = new Character();
        Character a2 = new Art();

    }
}